<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","客户详情");
    request.setAttribute("modelConfigPath", "cust");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
</style>

<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
    <div class="detailed-navbar-content panel-body" >
        <t:form commandName="customer" action="/admin/cust/customer/save" method="post" cssClass="form-horizontal">
            <div class="hide">
                <t:hidden path="id"/>
            </div>
            <t:formgroup>
                <t:label path="username" cssClass="col-sm-1" />
                <t:input path="username" colClass="col-sm-3" />
                <t:label path="sex" cssClass="col-sm-1" />
                <t:selectButton path="sex" colClass="col-sm-3" />
                <t:label path="idType" cssClass="col-sm-1" />
                <t:input path="idType" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="idCode" cssClass="col-sm-1" />
                <t:input path="idCode" colClass="col-sm-3" />
                <t:label path="userIdentity" cssClass="col-sm-1" />
                <t:input path="userIdentity" colClass="col-sm-3" />
                <t:label path="refereeIdentity" cssClass="col-sm-1" />
                <t:input path="refereeIdentity" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="phone" cssClass="col-sm-1" />
                <t:input path="phone" colClass="col-sm-3" />
                <t:label path="email" cssClass="col-sm-1" />
                <t:input path="email" colClass="col-sm-3" />
                <t:label path="birthday" cssClass="col-sm-1" />
                <t:date path="birthday" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="level" cssClass="col-sm-1" />
                <t:select2 path="level" colClass="col-sm-3" />
                <t:label path="region" cssClass="col-sm-1" />
                <t:input path="region" colClass="col-sm-3" />
                <t:label path="attentionStatus" cssClass="col-sm-1" />
                <t:selectButton path="attentionStatus" colClass="col-sm-3" />
            </t:formgroup>
            
             <t:formgroup>
                <t:label path="customerInfoMore.school" cssClass="col-sm-1" />
                <t:input path="customerInfoMore.school" colClass="col-sm-3" />
                <t:label path="customerInfoMore.educationLevel" cssClass="col-sm-1" />
                <t:input path="customerInfoMore.educationLevel" colClass="col-sm-3" />
                <t:label path="customerInfoMore.nation" cssClass="col-sm-1" />
                <t:input path="customerInfoMore.nation" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="customerInfoMore.political" cssClass="col-sm-1" />
                <t:input path="customerInfoMore.political" colClass="col-sm-3" />
                <t:label path="customerInfoMore.postcode" cssClass="col-sm-1" />
                <t:input path="customerInfoMore.postcode" colClass="col-sm-3" />
                <t:label path="attentionDate" cssClass="col-sm-1" />
                <t:datetime path="attentionDate" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="firstGeneration" cssClass="col-sm-1" />
                <t:input path="firstGeneration" colClass="col-sm-3" />
                <t:label path="secondGeneration" cssClass="col-sm-1" />
                <t:input path="secondGeneration" colClass="col-sm-3" />
                <t:label path="firstVisitor" cssClass="col-sm-1" />
                <t:input path="firstVisitor" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="firstVip" cssClass="col-sm-1" />
                <t:input path="firstVip" colClass="col-sm-3" />
                <t:label path="secondVip" cssClass="col-sm-1" />
                <t:input path="secondVip" colClass="col-sm-3" />
                <t:label path="firstMaker" cssClass="col-sm-1" />
                <t:input path="firstMaker" colClass="col-sm-3" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="secondMaker" cssClass="col-sm-1" />
                <t:input path="secondMaker" colClass="col-sm-3" />
                <t:label path="firstHighMaker" cssClass="col-sm-1" />
                <t:input path="firstHighMaker" colClass="col-sm-3" />
                <t:label path="secondHighMaker" cssClass="col-sm-1" />
                <t:input path="secondHighMaker" colClass="col-sm-3" />
            </t:formgroup>
        </t:form>
    </div>
</t:panel>

<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
